{literal}
<style type="text/css" media="print">
	.hideOnPrint { display:none; }
	.printBreak { page-break-before:always; }
</style>
{/literal}
{if $report->get('show_sequence')}
<div style="text-align: right;">
	<div style="float: right; padding: 2px; border: solid 1px black; font-weight: bold;">Report #{$report_sequence}</div>
	<br style="clear: both";
</div>
{/if}
<table width="100%"  border="0" cellspacing="0" cellpadding="8">
<tr class="hideOnPrint">
	<td>
		<h2 style="float:left">Report: {$report->get_label()}{if $template_name !== "Default Template"} - {$template_name}{/if}</h2>
		{if $PRINT_ACTION || $PDF_ACTION}
			<div style="float:right">
				<a target='print' href="{$CONTROLLER_THIS|regex_replace:'/\/main\//':'/print/'}">Print View</a>
			<a target='print' href="{$PDF_ACTION}">PDF View</a></div>
		{/if}
		<div style='clear: both'></div>
		{if $report->get_description()}
		<p>{$report->get_description()}</p>
		{/if}
	</td>
</tr>
{foreach from=$default_ds->toArray() item=appointment}
<tr style="page-break-before:always;">
	<td>
		{$appointment.salutation} {$appointment.first_name} {$appointment.last_name}<br />
		{$appointment.line1}<br />
		{if $appointment.line2 != ''}{$appointment.line2}<br />{/if}
		{$appointment.city}, {$appointment.state}, {$appointment.postal_code}
	</td>
</tr>

<tr>
	<td>
		Dear {$appointment.salutation} {$appointment.first_name} {$appointment.last_name},<br />
		
		<p>
			This is a friendly reminder that you have an upcoming appointment on <strong>{$appointment.appointment_date}</strong>
			at the {$appointment.practice_name} clinic.  If for some reason you need to cancel this
			appointment, or request a change in date, please contact us immediately at 
			{$appointment.practice_phone}
		</p>
		
		<blockquote>
			{$appointment.practice_name}<br />
			{$appointment.practice_line1}<br />
			{if $appointment.practice_line2 != ''}{$appointment.practice_line2}<br />{/if}
			{$appointment.practice_city}, {$appointment.practice_state}, {$appointment.practice_postal_code}
		</blockquote>
		
		<p>
			Again, your appointment is <strong>{$appointment.appointment_date}</strong>
		</p>
		
		<p>
			Thanks!,<br />
			The {$appointment.practice_name} Staff
		</p>
	</td>
</tr>
{/foreach}

</table>
